<?php
//角色
$this->group(['domain' => env('DOMAIN_ADMIN'),'prefix' => 'config/role/'], function() {
    $this->get('/', 'RoleController@indexPage');
    $this->get('/view/{id}', 'RoleController@getRole')->where('id','[0-9]+');
    $this->get('/view/list', 'RoleController@getLists');
    
    //验证角色名唯一
    $this->get('/view/check/name', 'RoleController@checkName');
    $this->get('/view/all/permission', 'RoleController@getAllPermission');

    //更新
	$this->post('/update', 'RoleController@postUpdate');

	//删除
	$this->delete('/delete/{id}', 'RoleController@deleteOne')->where('id','[0-9]+');
});
